package com.example.demo.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.example.demo.custom.BaseRepository;
import com.example.demo.entity.CarsOrder;
import com.example.demo.entity.CarsOrder2;
import com.example.demo.entity.SysUser;
@Repository
public interface CarsOrderRepository extends BaseRepository<CarsOrder, Integer>{

	CarsOrder findByPhone(String phone);


	CarsOrder findByPhoneAndUserId(String phone, SysUser user);

	List<CarsOrder> findByUserId(SysUser user);




	
	
}
